package cn.itcast.leyou.service.Impl;

import cn.itcast.leyou.mapper.UserMapper;
import cn.itcast.leyou.pojo.User;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * Author: Saka
 * Date: 2019/1/6
 * Time: 18:36
 */
@Service
public class UserService {
    @Autowired
    private UserMapper userMapper;

    public User queryById(Long id) {
        return this.userMapper.selectByPrimaryKey(id);

    }
    public void deleteById(Long id) {
        this.userMapper.deleteByPrimaryKey(id);

    }
}
